<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class send_mail extends CI_Controller {

	public function index(){
		$this->load->library('email');

		$this->email->from('noreply@jogjanuws.com', 'Jogja Nuws');
		$this->email->to('dul.kholid@gmail.com');

		$this->email->subject('Permintaan Maaf');
		$mail_content = '<h1>Terima kasih sudah mendaftar di Jogja Nuws. Klik <a href="#">link berikut</a> untuk aktifasi user Anda</h1>';
		$this->email->message('Selamat siang mbak dan mas, saya mohon maaf atas kesalahan saya ya');

		if($this->email->send()){
			echo "keren";
		}else{
			echo "ora keren";
		}

		echo $this->email->print_debugger();	
	}
	public function send(){

	}
}

/* End of file send_mail.php */
/* Location: ./application/controllers/send_mail.php */